package main

import (
	"fmt"
	"io/ioutil"
)

/*===整个文件读取===
 */
func main() {
	ioutilRead()
}
func ioutilRead() {
	file, err := ioutil.ReadFile("./test.txt")
	if err != nil {
		fmt.Println("read file failed, error: ", err)
		return
	}
	fmt.Println(string(file))

}
